package com.example.t;

public class Solution {
    public static boolean isPalindrome(int x) {
        String a = x +"";
        String reverse = new StringBuilder(a).reverse().toString();
        if (a.equals(reverse)) {
            return true;
        }else {
            return false;
        }
    }

    public static void main(String[] args) {
        int x = -121;
        System.out.println(isPalindrome(x));
    }
}
